import Vue from 'vue'
import App from './App.vue'
// 完整引入，main.js写入以下代码
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// @是路径别名，代表 src
import router from './router'
import http from './utils/http.js'
import MyChannel from '@/components/my-channel'

Vue.component(MyChannel.name, MyChannel)
Vue.prototype.$http = http

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
